import request from "@/utils/request";

// 获取获奖成果列表
export function getHonorList(query) {
  return request({
    url: "/achievement/honor/list",
    method: "get",
    params: query,
  });
}

// 新增获奖成果
export function getHonoradd(data) {
  return request({
    url: "/achievement/honor/add",
    method: "post",
    data: data,
  });
}
// 修改获奖成果
export function getHonorupdate(data) {
  return request({
    url: "/achievement/honor/update",
    method: "PUT",
    data: data,
  });
}

// 删除获奖成果
export function honorDel(ids) {
  return request({
    url: "/achievement/honor/del/" + ids,
    method: "delete",
  });
}
//获奖成果详情页
export function gethonorInfo(id) {
  return request({
    url: "/achievement/honor/" + id,
    method: "get",
  });
}
// 获取完成人列表
export function getHonorAuthorList(query) {
  return request({
    url: "/achievement/honor/honorAuthorList",
    method: "get",
    params: query,
  });
}

// 获取申报计划列表
export function gethonorApplyList(query) {
  return request({
    url: "/achievement​/honorApplyInfo​/list",
    method: "get",
    params: query,
  });
}

// 获取申报计划状态列表
export function gethonorApplyListStatistics(query) {
  return request({
    url: "/achievement​/honorApplyInfo​/list-statistics",
    method: "get",
    params: query,
  });
}

// 新增申报计划
export function honorApplyAdd(data) {
  return request({
    url: "/achievement​/honorApplyInfo​/add",
    method: "post",
    data: data,
  });
}
// 修改申报计划
export function gethonorApplyUpdate(data) {
  return request({
    url: "/achievement​/honorApplyInfo​/update",
    method: "PUT",
    data: data,
  });
}

// 删除申报计划
export function honorApplyDel(ids) {
  return request({
    url: "/achievement​/honorApplyInfo​/del/" + ids,
    method: "delete",
  });
}
//获奖申报计划详情页
export function gethonorApplyInfo(id) {
  return request({
    url: "/achievement​/honorApplyInfo​/" + id,
    method: "get",
  });
}

// 获取申报材料列表
export function gethonorApplyBookList(query) {
  return request({
    url: "/achievement​/honorApplyBook/list",
    method: "get",
    params: query,
  });
}

// 获取申报材料状态列表
export function gethonorApplyBookListStatistics(query) {
  return request({
    url: "/achievement​/honorApplyBook/list-statistics",
    method: "get",
    params: query,
  });
}

// 新增申报材料
export function honorApplyBookAdd(data) {
  return request({
    url: "/achievement​/honorApplyBook/add",
    method: "post",
    data: data,
  });
}
// 修改申报材料
export function gethonorApplyBookUpdate(data) {
  return request({
    url: "/achievement​/honorApplyBook/update",
    method: "PUT",
    data: data,
  });
}

// 删除申报材料
export function honorApplyBookDel(ids) {
  return request({
    url: "/achievement​/honorApplyBook/del/" + ids,
    method: "delete",
  });
}
//获奖申报材料详情页
export function gethonorApplyBookInfo(id) {
  return request({
    url: "/achievement​/honorApplyBook/" + id,
    method: "get",
  });
}

// 获取获奖评审列表
export function getreviewPlanList(query) {
  return request({
    url: "/achievement​/reviewPlan/list",
    method: "get",
    params: query,
  });
}

// 获取获奖评审状态列表
export function getreviewPlanListStatistics(query) {
  return request({
    url: "/achievement​/reviewPlan/list-statistics",
    method: "get",
    params: query,
  });
}

// 新增获奖评审
export function reviewPlanAdd(data) {
  return request({
    url: "/achievement​/reviewPlan/add",
    method: "post",
    data: data,
  });
}
// 转入获奖评审
export function honorApplyInfo(data) {
  return request({
    url: "/achievement​/honorApplyInfo/changeReview",
    method: "post",
    data: data,
  });
}
// 修改获奖评审
export function getreviewPlanUpdate(data) {
  return request({
    url: "/achievement​/reviewPlan/update",
    method: "PUT",
    data: data,
  });
}
// 更新获奖评审状态
export function getreviewPlanUpdateStatusById(data) {
  return request({
    url: "/achievement​/reviewPlan/updateStatusById",
    method: "PUT",
    data: data,
  });
}

// 删除获奖评审
export function reviewPlanDel(ids) {
  return request({
    url: "/achievement​/reviewPlan/del/" + ids,
    method: "delete",
  });
}
//获奖获奖评审详情页
export function getreviewPlanInfo(id) {
  return request({
    url: "/achievement​/reviewPlan/" + id,
    method: "get",
  });
}

// 获取评审方案列表
export function getreviewSchemeList(query) {
  return request({
    url: "/achievement​/reviewScheme/list",
    method: "get",
    params: query,
  });
}

// 新增评审方案
export function reviewSchemeAdd(data) {
  return request({
    url: "/achievement​/reviewScheme/add",
    method: "post",
    data: data,
  });
}
// 修改评审方案
export function getreviewSchemeUpdate(data) {
  return request({
    url: "/achievement​/reviewScheme/update",
    method: "PUT",
    data: data,
  });
}

// 删除评审方案
export function reviewSchemeDel(ids) {
  return request({
    url: "/achievement​/reviewScheme/del/" + ids,
    method: "delete",
  });
}
//评审方案详情页
export function getreviewSchemeInfo(id) {
  return request({
    url: "/achievement​/reviewScheme/" + id,
    method: "get",
  });
}

//评审方案标准详情页
export function getreviewStandardInfo(id) {
  return request({
    url: "/achievement​/reviewStandard/" + id,
    method: "get",
  });
}
// 获取评审方案标准列表
export function getreviewStandardList(query) {
  return request({
    url: "/achievement​/reviewStandard/list",
    method: "get",
    params: query,
  });
}

// 获取评审专家表
export function getexpertReviewList(query) {
  return request({
    url: "/achievement​/expertReview/list",
    method: "get",
    params: query,
  });
}

// 获取获奖评审成果列表
export function getreviewPlanhonorApplyBookList(query) {
  return request({
    url: "/achievement​/reviewPlan/honorApplyBookList",
    method: "get",
    params: query,
  });
}
// 获取评审计划-查看计划下专家
export function getexpertListByReviewPlan(query) {
  return request({
    url: "/achievement​/reviewPlan/expertListByReviewPlan",
    method: "get",
    params: query,
  });
}

// 获取评审计划-查看计划下专家
export function getexpertGroupList() {
  return request({
    url: "/achievement/reviewPlan/expertGroupList",
    method: "get",
  });
}

// 获奖评审指派专家，获取所有专家信息
export function getallExpertList() {
  return request({
    url: "/achievement/reviewPlan/allExpertList",
    method: "get",
  });
}
// 根据分组获取分组下专家列表
export function getexpertListByGroup(query) {
  return request({
    url: "/achievement/reviewPlan/expertListByGroup",
    method: "get",
    params: query,
  });
}

// 获奖评审指派专家，勾选专家保存
export function addReviewExpert(data) {
  return request({
    url: "/achievement/reviewPlan/addReviewExpert",
    method: "post",
    data: data,
  });
}

// 获奖评审成果列表专家意见汇总
export function gethonorApplyBookExpertReviewList(query) {
  return request({
    url: "/achievement/reviewPlan/honorApplyBookExpertReviewList",
    method: "get",
    params: query,
  });
}
// 评审计划-查看计划下专家-点击专家获取专家评审成果
export function getexpertReviewBookListByReviewPlan(query) {
  return request({
    url: "​/achievement​/reviewPlan​/expertReviewBookListByReviewPlan",
    method: "get",
    params: query,
  });
}

// 专家角色-获取获奖评审列表
export function gethonorApplyBookListByExpert(query) {
  return request({
    url: "/achievement/reviewPlan/honorApplyBookListByExpert",
    method: "get",
    params: query,
  });
}

// 专家角色-获取成果评审详情
export function gethonorApplyBookReviewResultByExpert(query) {
  return request({
    url: "/achievement/reviewPlan/honorApplyBookReviewResultByExpert",
    method: "get",
    params: query,
  });
}

// 专家角色-成果评审-提交评分
export function reviewByExpert(data) {
  return request({
    url: "/achievement/reviewPlan/reviewByExpert",
    method: "post",
    data: data,
  });
}

// 专家角色-成果评审-拒绝评审
export function refuseReviewByExpert(data) {
  return request({
    url: "/achievement/reviewPlan/refuseReviewByExpert",
    method: "post",
    data: data,
  });
}

// 管理员-成果评审-通过获奖
export function approveHonor(data) {
  return request({
    url: "/achievement/reviewPlan/approveHonor",
    method: "post",
    data: data,
  });
}

// 管理员-成果评审-撤回获奖
export function revokeHonor(data) {
  return request({
    url: "/achievement/reviewPlan/revokeHonor",
    method: "post",
    data: data,
  });
}

// 专家角色-成果评审-批量将已经保存的暂存提交 reviewObjectIds逗号分割
export function reviewNoSubmitByExpert(data) {
  return request({
    url: "/achievement/reviewPlan/reviewNoSubmitByExpert",
    method: "post",
    params: data,
  });
}

// 管理员-更新申报计划状态applyState 启动1 结束2
export function updateStatusById(data) {
  return request({
    url: "/achievement/honorApplyInfo/updateStatusById",
    method: "PUT",
    data: data,
  });
}

// 科研秘书-管理员-申报结束-设置获奖
export function updateHonorApplyBookHonorState(data) {
  return request({
    url: "/achievement/honorApplyBook/updateHonorApplyBookHonorState",
    method: "PUT",
    data: data,
  });
}

// 管理员-成果评审-更新成果获奖状态,建议通过，不建议通过，获奖
export function updateHonorState(data) {
  return request({
    url: "/achievement/reviewPlan/updateHonorState",
    method: "post",
    data: data,
  });
}

// 获取获奖成果状态列表
export function gethonorListStatistics(query) {
  return request({
    url: "/achievement​/honor/list-statistics",
    method: "get",
    params: query,
  });
}
